home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / vector.txt < prev   
Text File  |  1993-07-25  |  1KB  |  30 lines

  1. From leech@cs.unc.edu (Jon Leech)
  2. Newsgroups: comp.lang.c++
  3. Subject: Vector classes (was Re: Semantics of friends vs. members)
  4. Date: 31 Jan 92 03:10:28 GMT
  5.  
  6. In article <1228@taumet.com>, steve@taumet.com (Stephen D. Clamage) writes:
  7. > In your specific case, you could overload * for dot product and % for
  8. > cross product, or the other way around.  The precedences are right,
  9. > and I don't think % would otherwise be used for vectors.
  10.  
  11.     I prefer ^ .
  12.  
  13.     BTW, if anyone wants a fairly complete set of 3 and 4 element
  14. template vector/matrix classes (suitable for 3D graphics work) you can
  15. get
  16.  
  17.     ftp.cs.unc.edu:pub/vector.tar.Z
  18.  
  19.     by anonymous FTP (*). No guarantees, no support, no copyright, and
  20. virtually no documentation comes with this.
  21.  
  22. (*) If you don't have FTP access, read news.answers to find one of the
  23. FAQs discussing email FTP servers. I will not email copies. Don't ask.
  24. --
  25.     Jon Leech (leech@cs.unc.edu)    __@/
  26. "We were driving along, minding our own business, when there was a
  27.  sudden flash of blue light which blotted out the stars. I thought it
  28.  was a nuclear bomb going off and despaired for my career." - Keith Hughes
  29.  
  30.